<%@ page import="com.situ.web.pojo.Student" %><%--
  Created by IntelliJ IDEA.
  User: Gao
  Date: 2025/7/30
  Time: 15:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Title</title>
  </head>
  <body>
      <%
          Student student = (Student) request.getAttribute("student");
      %>
      <form action="/student?method=update" method="post">
        <table border="1" cellspacing="0">
          <input type="hidden" name="id" value="<%=student.getId()%>">
          <tr>
            <td>用户名：</td>
            <td><input type="text" name="name" value="<%=student.getName()%>"></td>
          </tr>
          <tr>
            <td>年龄：</td>
            <td><input type="text" name="age" value="<%=student.getAge()%>"></td>
          </tr>
          <tr>
            <td>性别：</td>
            <td><input type="text" name="gender" value="<%=student.getGender()%>"></td>
          </tr>
          <tr>
            <td><input type="submit" value="编辑"></td>
            <td><input type="reset" value="重置"></td>
          </tr>
        </table>
      </form>
  </body>
</html>
